import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable()
export class MdService {

  constructor(private http:HttpClient) { }

  save(id:number, title:string, content:string) {
    return this.http.post("http://localhost:8080/post", {id: id, title:title, content:content})
  }
}
